package com.torres.srm.dao;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.torres.srm.entity.Demo;

@Repository
public interface DemoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Demo record);

    int insertSelective(Demo record);

    @Select("select id, name from demo where id = #{id}")
    Demo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Demo record);

    int updateByPrimaryKey(Demo record);
}